<h1 class="title-h1">退货地址</h1>
<div class="layui-card-body">
    <form class="layui-form " action="" lay-filter="dataForm">

        <div class="layui-form-item">
            <label class="layui-form-label">收件人</label>
            <div class="layui-input-inline">
                <input type="text" name="consignee" placeholder="请输入收件人" class="layui-input" value="{$consignee}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-inline">
                <input type="text" name="phone" placeholder="请输入收件人手机号" class="layui-input" value="{$phone}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">详细地址</label>
            <div class="layui-input-block">
                <input type="text" name="address" placeholder="请输入详细地址" class="layui-input" value="{$address}">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="dataSubmit">确定</button>
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['form', 'http', 'laydate'], function () {
        var form = layui.form;
        var http = layui.http;
        var $ = layui.$;
        //监听提交
        form.on('submit(dataSubmit)', function (data) {
            http.post('/Postage/returnAddress', data.field, function (res) {

            }, $(this), true)
            return false;
        })
    })
</script>